#封装一个MyMath类，实现加/减/乘/除
class MyMath(object):
    def __init__(self, a, b):
        self.a = a
        self.b = b
    def add(self):
        return self.a + self.b
    def less(self):
        return self.a - self.b
    def mult(self):
        return self.a * self.b
    def exce(self):
        return self.a / self.b

if __name__ == '__main__':
    a, b = input("please input a,b: ").split(',')
    calc = MyMath(int(a), int(b))
    print(f"a + b: {calc.add()}")
    print(f"a - b: {calc.less()}")
    print(f"a * b: {calc.mult()}")
    print(f"a / b: {calc.exce()}")